from django.conf.urls import url
from django.contrib import admin

from App import views

urlpatterns = [
    url(r'^index/$', views.index, name='index'),
    url(r'^base/', views.base),
    url(r'^admin/', admin.site.urls),
    url(r'^index/(\d+)/$', views.index, name='index1'),
    url(r'^register/$', views.register, name='register'),
    url(r'^login/$', views.login, name='login'),
    url(r'^logingout/$', views.logingout, name='logingout'),
    url(r'^check_username/$', views.check_username, name='check_username'),
    url(r'^check_password/$', views.check_password, name='check_password'),

    url(r'^makeviews/(\d+)/$', views.makeviews, name='makeviews'),



    url(r'^getcode/$', views.getcode, name='getcode'),
    url(r'^aboutme/$', views.aboutme, name='aboutme'),
    url(r'^sendyzm/$', views.sendyzm, name='sendyzm'),

#     写博客
    url(r'^article/$', views.article, name='article'),
    url(r'^addarticle/$', views.addarticle, name='addarticle'),
    # 分类展示
    url(r'^moodlist/(\d+)/$', views.moodlist, name='moodlist'),

    url(r'^deal/(\d+)/$', views.deal, name='deal'),

    url(r'^comment/(\d+)$', views.comment, name='comment'),
    url(r'^mycomment/$', views.mycomment, name='mycomment'),

    url(r'^delete/(\d+)/$', views.delete, name='delete'),
    url(r'^update/(\d+)$', views.update, name='update'),
    url(r'^draft/$', views.draft, name='draft'),
    # 置顶
    url(r'^istop/(\d+)$', views.istop, name='istop'),
url(r'^test/$', views.test ),
url(r'^test3/$', views.test3 ,name='test3'),
url(r'^test2/$', views.test2 ,name='test2')

]
